import request from './index.js' //引入http.js
const api = request
/*上传照片*/
// export const uploadFilePromise = (params) => api.request('upload/image', 'POST', params, true)
export const uploadFile = (params) => api.request('upload/image', 'POST', params, true, 'iFile')


export const getTabbar = (params) => api.request('index/config', 'GET', params) //配置tabbar
export const login = (params) => api.request('login/login', 'POST', params) //登录
export const getAd = (params) => api.request('index/getAd', 'GET', params) //登录
export const getLive = (params) => api.request('index/getLive', 'GET', params) //获取直播列表
export const getVideo = (params) => api.request('index/getVideo', 'GET', params) //获取视频列表
export const getusercenter = (params) => api.request('my/center', 'GET', params) //获取商品列表
export const getGoodslist = (params) => api.request('goods/lists', 'GET', params) //获取商品列表
export const getGoodsCategory = (params) => api.request('index/getGoodsCategory', 'GET', params) //获取商品分类
export const getorderNav = (params) => api.request('my/orderNav', 'GET', params) //获取订单nav
export const income = (params) => api.request('my/income', 'GET', params) //获取我的收益
export const tools = (params) => api.request('my/tools', 'GET', params) //获取我的服务
export const bindAlipay = (params) => api.request('my/bindAlipay', 'POST', params) //获取我的服务
export const getCode = (params) => api.request('home/getCode', 'GET', params) //获取验证码
export const getuserinfo = (params) => api.request('user/info', 'GET', params) //获取userinfo
export const withdrawal = (params) => api.request('money/withdrawal', 'POST', params) //提交提现申请
export const getWithdrawalInfo = (params) => api.request('money/getWithdrawalInfo', 'GET', params) //提现
export const getTocash = (params) => api.request('money/getTocash', 'GET', params) //提现
export const getWxPhone = (params) => api.request('login/getWxPhone', 'POST', params) //提交提现申请
export const getTeamData = (params) => api.request('data/getTeamData', 'GET', params) //获取我的团对信息
export const getTeamLists = (params) => api.request('user/getTeamLists', 'GET', params) //获取我的团对信息
export const getInviteQrcode = (params) => api.request('user/getInviteQrcode', 'GET', params) //获取我的团对信息
export const getOrderData = (params) => api.request('data/getOrderData', 'GET', params) //获取我的订单数据
export const getOrderlists = (params) => api.request('orders/lists', 'GET', params) //获取我的订单数据
export const getGoodInfo = (params) => api.request('goods/getGoodInfo', 'GET', params) //获取我的订单数据
export const promotionData = (params) => api.request('goods/promotionData', 'GET', params) //获取我的订单数据
export const getdeepseek = (params) => api.request('goods/deepseek', 'GET', params) //获取我的订单数据
export const getGoodsQrcode = (params) => api.request('goods/getGoodsQrcode', 'GET', params) //分享商品二维码
export const goodsLike = (params) => api.request('goods/goodsLike', 'GET', params) //商品收藏
export const addPushUser = (params) => api.request('index/addPushUser', 'GET', params) //申请加推客
export const getSchool = (params) => api.request('index/getSchool', 'GET', params) //商品收藏
export const saveInviteQrcode = (params) => api.request('user/saveInviteQrcode', 'POST', params) //商品收藏
export const getWithdrawalData = (params) => api.request('data/getWithdrawalData', 'GET', params) //商品收藏
export const moneyLog = (params) => api.request('user/moneyLog', 'GET', params) //商品收藏
export const withdrawalLog = (params) => api.request('user/withdrawalLog', 'GET', params) //商品收藏
export const helpLists = (params) => api.request('index/helpLists', 'GET', params) //商品收藏
export const giftHeadImg = (params) => api.request('goods/giftHeadImg', 'GET', params) //商品收藏
export const giftCategory = (params) => api.request('goods/giftCategory', 'GET', params) //商品收藏
export const getBrand = (params) => api.request('index/getBrand', 'GET', params) //商品收藏
export const getBrandInfo = (params) => api.request('index/getBrandInfo', 'GET', params) //商品收藏
export const getsearch = (params) => api.request('search/lists', 'GET', params) //商品收藏
export const setUser = (params) => api.request('my/setUser', 'POST', params) //商品收藏
export const getPage = (params) => api.request('index/getPage', 'GET', params) //商品收藏
export const indextop = (params) => api.request('index/top', 'GET', params) //商品收藏
export const gettopLists = (params) => api.request('goods/topLists', 'GET', params) //商品收藏
export const tutor = (params) => api.request('index/tutor', 'GET', params) //商品收藏
export const getLiveInfo = (params) => api.request('live/getLiveInfo', 'GET', params) //商品收藏
export const saveSource = (params) => api.request('goods/saveSource', 'GET', params) //商品收藏
export const getliveQrcode = (params) => api.request('live/getliveQrcode', 'GET', params) //商品收藏
export const publicConfig = (params) => api.request('index/publicConfig', 'GET', params) //商品收藏
export const getfootPrint = (params) => api.request('goods/footPrint', 'GET', params) //商品收藏
export const clearFootPrint = (params) => api.request('goods/clearFootPrint', 'GET', params) //商品收藏
export const collect = (params) => api.request('goods/collect', 'GET', params) //商品收藏
export const clearCollect = (params) => api.request('goods/clearCollect', 'GET', params) //商品收藏
export const cooperate = (params) => api.request('index/cooperate', 'GET', params) //商品收藏
export const save = (params) => api.request('user/save', 'POST', params) //商品收藏
export const getSchoolInfo = (params) => api.request('index/getSchoolInfo', 'GET', params) //商品收藏
export const shopLists = (params) => api.request('goods/shopLists', 'GET', params) //商品收藏
export const shopCategory = (params) => api.request('goods/shopCategory', 'GET', params) //商品收藏
export const gethotCopywriting = (params) => api.request('material/hotCopywriting', 'GET', params) //商品收藏
export const copyHotwriting = (params) => api.request('material/copyHotwriting', 'POST', params) //商品收藏
export const getCouponLink = (params) => api.request('goods/getCouponLink', 'POST', params) //商品收藏
export const getspreadlist = (params) => api.request('material/spread', 'GET', params) //商品收藏
